package com.zkyc.framework.common.mapper;

import com.zkyc.framework.common.pojo.Pi;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * (Pi)表数据库访问层
 *
 * @author libingchuan
 * @since 2022-06-01 15:43:04
 */
@Mapper
public interface PiMapper extends BaseMapper<Pi> {

    @Select(
            "SELECT distinct pi from web_center where web_center.is_deleted != 1"
    )
    List<String> getUserCodeList();

    @Select(
            "SELECT distinct user_code from web_pi where is_deleted != 1"
    )
    List<String> getAllUserCodeList();


}

